<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      >
    <h:head>
        <meta charset="utf-8"/>
        <title>Solution billeterie</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta name="description" content=""/>
        <meta name="author" content=""/>
        <!-- Le styles -->
        <link href="assets/css/bootstrap.css" rel="stylesheet"/>
        <link href="assets/css/main.css" rel="stylesheet"/>
        <link href="assets/css/tek.css" rel="stylesheet"/>
        <style type="text/css">
            body {
                padding-top: 60px;
            }
        </style>
        <link href="assets/css/bootstrap-responsive.css" rel="stylesheet" />
        <link rel="shortcut icon" href="assets/ico/favicon.ico"/>
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png"/>
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png"/>
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png"/>
        <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png" />
        <!-- Google Fonts call. Font Used Open Sans -->
        
    </h:head>
    <h:body>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="index.xhtml?faces-redirect=true"><img src="assets/img/logo-small.png" alt=""/> Solution Billetterie</a>
                    <ui:include src="header_1_1.xhtml" />
                </div>
            </div>
        </div>
        <!-- *********************************************************************************** -->
        <div class="container">
            <!-- CONTENT -->
            <br/>
            <h:form id="form">
                <h3>Arret de caisse</h3>
                <center>

                    <h:panelGrid style="text-align: center;"  columns="1" width="70%" >

                        <p:dataTable style="font-size: x-small;" id="tbl" var="user" value="#{montantcaisseBean.lists}" 
                                     emptyMessage="Aucune vente" 
                                     paginator="true" rows="5"  
                                     >  
                            <p:column id="ID"    
                                      headerText="ID"   
                                      filterMatchMode="contains">
                                <f:facet name="header">  
                                    <h:outputText value="ID" />  
                                </f:facet> 
                                <h:outputText value="#{user.id}" />  
                            </p:column>  
                            <p:column 
                                headerText="Operateur"   
                                filterMatchMode="contains">
                                <f:facet name="header">  
                                    <h:outputText value="Operateur" />  
                                </f:facet> 
                                <h:outputText value="#{user.guichet.operateur}" />  
                            </p:column> 
                            <p:column 
                                headerText="Montant"   
                                filterMatchMode="contains">
                                <f:facet name="header">  
                                    <h:outputText value="Montant" />  
                                </f:facet> 
                                <h:outputText value="#{user.montant} DT" />  
                            </p:column> 
                            <p:column 
                                headerText=""   
                                filterMatchMode="contains">
                                <f:facet name="header">  
                                    <h:outputText value="" />  
                                </f:facet>
                               
                                <h:commandLink value="consulter" action="caisseArret_1.xhtml?faces-redirect=true"  >
                                    <f:setPropertyActionListener target="#{caisseBean.seleMontantCaisse}" value="#{user}" />
                                </h:commandLink>
                            </p:column> 
                        </p:dataTable>
                        <p:panel header="Export All Data">  
                            <h:commandLink>  
                                <p:graphicImage value="img/excel.png" />  
                                <p:dataExporter type="xls" target="tbl" fileName="cars" />  
                            </h:commandLink>  

                            <h:commandLink>  
                                <p:graphicImage value="img/pdf.png" />  
                                <p:dataExporter type="pdf" target="tbl" fileName="cars"/>  
                            </h:commandLink>  

                            <h:commandLink>  
                                <p:graphicImage value="/img/csv.png" />  
                                <p:dataExporter type="csv" target="tbl" fileName="cars" />  
                            </h:commandLink>  
                        </p:panel> 

                        <p:messages   id="messages" showDetail="true" autoUpdate="true"/> 
                    </h:panelGrid>
                </center>
            </h:form>
        </div><!-- /BlockUnit -->
    </h:body>
</html>